package com.dd.census.tools;

import org.springframework.http.HttpStatus;

/**
 * 系统业务异常
 */
public class SysException extends RuntimeException {

	private static final long serialVersionUID = 1L;

	// 默认为服务器异常
	private HttpStatus status = HttpStatus.INTERNAL_SERVER_ERROR;

	/**
	 * 构造函数
	 * 
	 * @param status 错误状态码
	 */
	public SysException(HttpStatus status) {
		this.status = status;
	}

	/**
	 * 获取状态码
	 * @return
	 */
	public HttpStatus getStatus() {
		return this.status;
	}
}
